package 高性能Golang

import (
	"fmt"
	"time"
)

// 统计时间
func Handler() {
	t0 := time.Now()
	time.Sleep(100 * time.Millisecond)
	fmt.Printf("1. use time %d ms\n", time.Since(t0).Milliseconds())
}
